package com.itheima.array;

public class Deam3arraybug {
    public static void main(String[] args) {
        int[] arr = new int[3];//索引越界
        //System.out.println(arr[4]);

        arr = null;//空指针异常
        System.out.println(arr[0]);
    }
}
